package vodresource

import (
	dbModel "ZHONGYIHANGYAN/bean/dbModel"
	"ZHONGYIHANGYAN/mysql"
)

type VodResourceManage struct {
	mysql.DataBase
}

var defaultVodResourceManage = &VodResourceManage{}

func Manage() *VodResourceManage {
	return defaultVodResourceManage
}

// 初始化指标表
func InitTable(DB *mysql.MysqlGorm) {
	defaultVodResourceManage.DataBase = DB
	defaultVodResourceManage.autoMigrate()
}

func (m *VodResourceManage) autoMigrate() {
	m.DataBase.AutoMigrate(&dbModel.VodResource{})
}
